#! /usr/bin/env python
#coding:utf-8
"""
检测一个指定url 1000次，sleep 2秒！
"""
import urllib2
import time

wxurl='http://www.baidu.com'

for i in range(1001):
    response=urllib2.urlopen(wxurl)
    html=response.read()
    print html
    time.sleep(2)
